package com.qk.management.mapper;

import com.qk.dto.role.RoleDTO;
import com.qk.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface RoleMapper {

    List<Role> selectByPage(RoleDTO dto);


    @Select("select * from role where id = #{roleId}")
    Role selectById(Integer roleId);


    @Select("select * from role")
    List<Role> selectAll();
}